package com.example.teachingevaluationsystem.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author 王妍
 * @since 2022-02-20
 */
@Getter
@Setter
@TableName("user_role")
@ApiModel(value = "UserRole对象", description = "")
public class UserRole implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty("主键")
  @TableId("id")
  private Long id;

  @ApiModelProperty("菜单id")
  @TableField("user_id")
  private Long userId;

  @ApiModelProperty("角色id")
  @TableField("role_id")
  private Long roleId;
}
